package com.example.tool.utils;

import java.io.File;

/**
 * <p>Title: WebServersUtil</p >
 * Description: 同步到本地代码配置工具类
 * <p>CreateTime: 2022/6/29 17:09</p>
 * @author FT
 */
public class WebServersUtil {
  public static String changeConfiguration(String count, String text, String id) {
    String $UUID$ = count.replace("$UUID$", id);
    String pathname = text + "/ApacheJetspeed/webapps/seeyon/";
    File baseFile = new File(pathname);
    if (baseFile.exists()) {
      return $UUID$.replace("$localhost$", text + "/ApacheJetspeed/webapps/seeyon/");
    } else {
      return $UUID$.replace("$localhost$", text);
    }
  }
}
